/**
 * 
 */
package hu.gbalage.directories.jdo;

import java.util.HashMap;
import java.util.Map;

/**
 * @author balage
 *
 */
public class EntryCache {

	private static final Map<Long, JDOEntryData> cache = new HashMap<Long, JDOEntryData>();
	
	public static JDOEntryData get(Long id){
		if (!cache.containsKey(id)) cache.put(id, JDORootDir.load(id));
		return cache.get(id);
	}
	
}
